import request from "@/utils/request";

// 查询医嘱
export function medicalSearch(checkInMark) {
  return request({
    url: "/sinohis/pension/nurse/medical/search/" + checkInMark,
    method: "get"
  });
}

//批量修改或更新医嘱
export function medicalSave(data) {
  return request({
    url: "/sinohis/pension/nurse/medical/save",
    method: "post",
    data
  });
}

// 医生申请终止医嘱
export function medicalApplyterm(data) {
  return request({
    url: "/sinohis/pension/nurse/medical/applyterm",
    method: 'PUT',
    data
  });
}

// 护工批量确认执行医嘱
export function medicalConfirmexec(data) {
  return request({
    url: "/sinohis/pension/nurse/medical/confirmexec",
    method: 'PUT',
    data
  });
}

// 护工确认终止医嘱
export function medicalConfirmterm(data) {
  return request({
    url: "/sinohis/pension/nurse/medical/confirmterm",
    method: 'PUT',
    data
  });
}

// 医生删除医嘱
export function medicalDelete(data) {
  return request({
    url: "/sinohis/pension/nurse/medical/delete/" + data.checkInMark + '/' + data.medicalCode,
    method: 'PUT',
    data
  });
}

// 医生批量执行医嘱
export function medicalDoctorexec(data) {
  return request({
    url: "/sinohis/pension/nurse/medical/doctorexec",
    method: 'PUT',
    data
  });
}

// 医嘱撤销
export function medicalRevocation(data) {
  return request({
    url: "/sinohis/pension/nurse/medical/revocation",
    method: 'PUT',
    data
  });
}